import {
  deviceType
} from "@/common/deviceType";
export default function (context) {
  context.userAgent = process.server ? context.req.headers["user-agent"] : navigator.userAgent;
  context.deviceType = deviceType(context.userAgent);
  if (context.deviceType.type === "pc") {
    context.store.commit('setIsmobile', false);
  } else {
    context.store.commit('setIsmobile', true);
  }
}
